<template>
  <section>
    <!-- 面包屑 -->
 <breadcrumbs></breadcrumbs>
    <div class="data-container scroll-table">
      <div>
        <div class="wenzhang">环保公益文章详情</div>
      </div>

      <div>
        <div class="ind-title lh50 f16"><span class="biaoti">文章分类：</span>{{wenzhanglist.epTypeName}}</div>
      </div>

      <div>
        <div class="ind-title lh50 f16"><span class="biaoti">阅读量：</span>{{wenzhanglist.readNum}}</div>
      </div>

      <div>
        <div class="ind-title lh50 f16"><span class="biaoti">文章排序：</span>{{wenzhanglist.isReferrer}}</div>
      </div>

      <div>
        <div class="ind-title lh50 f16"><span class="biaoti">文章封面：</span><img :src=wenzhanglist.headImgUrl alt="" class="fengmian"></div>
      </div>

       <div>
        <div class="ind-title lh50 f16"><span class="biaoti">文章标题：</span>{{wenzhanglist.title}}</div>
      </div>

      <div>
        <div class="ind-title lh50 f16"><span class="biaoti">文章详情：</span><span v-html="wenzhanglist.content"></span></div>
      </div>

    </div>
   
  </section>
</template>

<script>
import btns from "@/components/btns.vue";
import Editor from "@/components/edit";
import mixins from "@/utils/mixins";
import breadcrumbs from "@/components/breadcrumbs.vue";
export default {
  mixins: [mixins],
  components: {
    btns,
    Editor,
    breadcrumbs,
  },
  data() {
    var FengValidate = (rule, value, callback) => {
      // console.log(this.addfile);
      if (this.addfile == "") {
        callback(new Error("请选择封面图片"));
      }
      // if (value == null || value == '') {
      //   this.activeNames = ['2'];
      // }
    };
    return {
        agencyId: this.$route.query.jid,
        wenzhanglist:[],
    };
  },
  created() {

    this.fenleilist();

  },
  methods: {
    
    fenleilist(){
          {
          this.$api.agreement.wenzhangdetail({
              articleId:this.agencyId
          
          }).then(d => {
            if (d.code == 200) {
              this.wenzhanglist = d.data.epArticle
            }
          })
        }
      },
  }
};
</script>

<style lang="scss" scoped>
.dialog-footer {
  margin-top: 50px;
}
.img-feng {
  width: 120px;
  height: 120px;
}
.goods {
  width: 500px;
}
.icon {
  display: flex;
  justify-content: space-between;
  i {
    font-size: 25px;
  }
}
.fengmian{
    height: 25%;
    width: 25%;
}
.wenzhang{
    font-size: 20px;
    font-weight: 700;
}
.biaoti{
    font-size: 15px;
    font-weight: 700;
}
</style>
